package com.renbang.model.common;

import java.util.List;

public class AjaxResult {
	private String status; //自定义状态 
	public static String STATUS_ERR="err";
	public static String STATUS_OK="ok";
	private String info;//信息
	private List<?> rows;//数据
	private Integer total;//总记录
	private String page;//页面
	
	
	public AjaxResult(String status, String page,String info) {
		this.status = status;
		this.page = page;
		this.info = info;
	}
	public AjaxResult(String status, String info) {
		this.status = status;
		this.info = info;
	}
	
	public String getPage() {
		return page;
	}
	public void setPage(String page) {
		this.page = page;
	}
	public AjaxResult(String status, String page , String info ,List<?> rows, Integer total) {
		this.status = status;
		this.rows = rows;
		this.info = info;
		this.total = total;
		this.page = page;
	}
	
	public AjaxResult(String status,String info, List<?> rows,Integer total) {
		this.status = status;
		this.rows = rows;
		this.info = info;
		this.total = total;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	public String getInfo() {
		return info;
	}
	public void setInfo(String info) {
		this.info = info;
	}
	public List<?> getRows() {
		return rows;
	}
	public void setRows(List<?> rows) {
		this.rows = rows;
	}
	public Integer getTotal() {
		return total;
	}
	public void setTotal(Integer total) {
		this.total = total;
	}
	
	
}
